package kr.co.sdworld.webclient.spring.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import kr.co.sdworld.api.apns.model.ApnsLogin;
import kr.co.sdworld.webs.ServiceContext;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class LoginCheckInterceptor extends HandlerInterceptorAdapter
{
	@Override
	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler) throws Exception {
//		ApnsLogin login = (ApnsLogin)ServiceContext.getSession().getAttribute("login");
//		
//		if(login == null) {
//			response.sendRedirect(ServiceContext.getRequest().getContextPath());
//			return false;
//		}
		return super.preHandle(request, response, handler);
	}
}
